package com.asl.website.item.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.asl.website.item.mapper.TTransportServiceItemMapper;
import com.asl.website.item.domain.TTransportServiceItem;
import com.asl.website.item.service.ITTransportServiceItemService;

/**
 * 客户服务项Service业务层处理
 * 
 * @author ruoyi
 * @date 2025-05-21
 */
@Service
public class TTransportServiceItemServiceImpl implements ITTransportServiceItemService 
{
    @Autowired
    private TTransportServiceItemMapper tTransportServiceItemMapper;

    /**
     * 查询客户服务项
     * 
     * @param id 客户服务项主键
     * @return 客户服务项
     */
    @Override
    public TTransportServiceItem selectTTransportServiceItemById(Long id)
    {
        return tTransportServiceItemMapper.selectTTransportServiceItemById(id);
    }

    /**
     * 查询客户服务项列表
     * 
     * @param tTransportServiceItem 客户服务项
     * @return 客户服务项
     */
    @Override
    public List<TTransportServiceItem> selectTTransportServiceItemList(TTransportServiceItem tTransportServiceItem)
    {
        return tTransportServiceItemMapper.selectTTransportServiceItemList(tTransportServiceItem);
    }

    /**
     * 新增客户服务项
     * 
     * @param tTransportServiceItem 客户服务项
     * @return 结果
     */
    @Override
    public int insertTTransportServiceItem(TTransportServiceItem tTransportServiceItem)
    {
        return tTransportServiceItemMapper.insertTTransportServiceItem(tTransportServiceItem);
    }

    /**
     * 修改客户服务项
     * 
     * @param tTransportServiceItem 客户服务项
     * @return 结果
     */
    @Override
    public int updateTTransportServiceItem(TTransportServiceItem tTransportServiceItem)
    {
        return tTransportServiceItemMapper.updateTTransportServiceItem(tTransportServiceItem);
    }

    /**
     * 批量删除客户服务项
     * 
     * @param ids 需要删除的客户服务项主键
     * @return 结果
     */
    @Override
    public int deleteTTransportServiceItemByIds(Long[] ids)
    {
        return tTransportServiceItemMapper.deleteTTransportServiceItemByIds(ids);
    }

    /**
     * 删除客户服务项信息
     * 
     * @param id 客户服务项主键
     * @return 结果
     */
    @Override
    public int deleteTTransportServiceItemById(Long id)
    {
        return tTransportServiceItemMapper.deleteTTransportServiceItemById(id);
    }
}
